package org.ihelpuoo.weboo.upload;

import java.util.Calendar;

public class FileBean
{

	private int			id;
	private String		name;
	private String		extension;
	private Calendar	createTime;
	private Calendar	lastModifiedTime;
	private String		description;
	private String		contentType;

	public int getId()
	{
		return id;
	}

	public void setId(int id)
	{
		this.id = id;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String getContentType()
	{
		return contentType;
	}

	public void setContentType(String contentType)
	{
		this.contentType = contentType;
	}

	public Calendar getCreateTime()
	{
		return createTime;
	}

	public void setCreateTime(Calendar createTime)
	{
		this.createTime = createTime;
	}

	public String getDescription()
	{
		return description;
	}

	public void setDescription(String description)
	{
		this.description = description;
	}

	public String getExtension()
	{
		return extension;
	}

	public void setExtension(String extension)
	{
		this.extension = extension;
	}

	public Calendar getLastModifiedTime()
	{
		return lastModifiedTime;
	}

	public void setLastModifiedTime(Calendar lastModifiedTime)
	{
		this.lastModifiedTime = lastModifiedTime;
	}

	@Override
	public boolean equals(Object obj)
	{
		if (!super.equals(obj))
			return false;
		if (!extension.equals(((FileBean)obj).extension))
			return false;
		if (!createTime.equals(((FileBean)obj).createTime))
			return false;
		if (!lastModifiedTime.equals(((FileBean)obj).lastModifiedTime))
			return false;
		if (!contentType.equals(((FileBean)obj).contentType))
			return false;
		return true;
	}

}
